<?php

class Observation{

public $dimensions=array();
public $measure=NULL;
public $attributes=array();

public $dimensionValue=array();
public $attributeValue=array();

public $observationValue=NULL;
public $observationURI=NULL;


// singleton instance 
  private static $instance; 


private function __construct() {
  /*** maybe set the name here later ***/
}


  // getInstance method 
  public static function getInstance() { 

    if(!self::$instance) { 
      self::$instance = new self(); 
    } 

    return self::$instance; 

  } 


public function copy(){
   
   $clone=new Observation();
   $clone->observationValue=$this->observationValue;
   $clone->observationURI=$this->observationURI;
   $clone->measure->label=$this->measure->label;
   $clone->dimensions=$this->dimensions;
   $clone->dimensionValue=$this->dimensionValue;

   return $clone;
  }
 


}
?>
